package com.lau.dicttranslator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * 字典数据实体
 */
@TableName("dict_data")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DictData {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 字典类型代码
     */
    @TableField("dict_type")
    private String dictType;
    
    /**
     * 字典键值
     */
    @TableField("dict_key")
    private String dictKey;
    
    /**
     * 字典标签
     */
    @TableField("dict_label")
    private String dictLabel;
    
    /**
     * 排序
     */
    @TableField("sort_order")
    private Integer sortOrder;
    
    /**
     * 状态 0=禁用 1=启用
     */
    @TableField("status")
    private Integer status;
} 